package com.file.system.mapper.system;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 排序 服务类
 *
 * @author 靳春晖
 * @since 2020-05-13
 */
@Mapper
public interface SystemSortMapper {

    //查询当前排序最大值
    int selectMaxSort(@Param("tableName") String tableName, @Param("ew") QueryWrapper sortQueryWrapper);

    //排序+1
    int updateSortAdd(@Param("tableName") String tableName, @Param("ew") QueryWrapper sortQueryWrapper);

    //排序-1
    int updateSortReduce(@Param("tableName") String tableName, @Param("ew") QueryWrapper sortQueryWrapper);
}
